<?php
/*
 * 测试代理模式
 */

namespace App\Controller;

use App\DesignPattern\Proxy\UserProxy;

class ControllerProxy {

	public function actionIndex()
    {
        $user_proxy = new UserProxy();
        $user_proxy->setUserName(80, '梁燕萍');
        \var_dump($user_proxy->getUserName(80));
	}
}
